package com.technology.enumeration;

public enum Operation {

	
	PLUS {
		@Override
		public void eval(int x, int y) {
			System.out.println(" x + y = " + (x + y));
		}
	},
	MINUS {
		@Override
		public void eval(int x, int y) {
			System.out.println(" x - y = " + (x - y));
		}
	},
	MULTIPLY {
		@Override
		public void eval(int x, int y) {
			System.out.println(" x * y = " + (x * y));
		}
	}
	,
	DIV {
		@Override
		public void eval(int x, int y) {
			System.out.println(" x / y = " + (x / y));
		}
	};
	
	public abstract void eval(int x, int y);
}
